<?

$fs_eve_man_events = new Fieldset (array (
	db_conn=>$_GLOBAL_DBH,
	relation=>"eve_man_events",
	title=>"Managed Events",
	fieldset=>array (
		array (name=>"id",label=>"ID",type=>"numeric",
				value=>$_REQUEST["event_id"],
				input=>"hidden",primary_key=>true),
		array (name=>"type_id",label=>"State",type=>"any",
				relation=>array(foreign=>"eve_man_types",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM eve_man_types",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"status_id",label=>"State",type=>"any",
				relation=>array(foreign=>"eve_man_status",key=>"id",
				field=>"name"),
				input=>"select",
				options=>"_app_select_query",
				options_params=>"SELECT id,name FROM eve_man_status",
				columns=>array (key=>"id",value=>"name"),
		),
		array (name=>"name",label=>"Name",type=>"alphanumeric",
				input=>"field"),
		array (name=>"description",label=>"Description",type=>"alphanumeric",
				input=>"text"),
		array (name=>"location",label=>"Location",type=>"alphanumeric",
				input=>"text"),
		array (name=>"date_start",label=>"Start Date",type=>"any",
				input=>"date",value=>_app_date("date_start")),
		array (name=>"date_end",label=>"End Date",type=>"any",
				input=>"date",value=>_app_date("date_end")),

		array (name=>"required_staffing",label=>"Required Staffing",type=>"numeric",
				input=>"field"),
		array (name=>"confirmed",label=>"Confirmed",type=>"numeric",
				input=>"field"),
		array (name=>"available_spaces",label=>"Available Spaces",type=>"numeric",
				input=>"field"),
		array (name=>"location",label=>"Location",type=>"alphanumeric",
				input=>"text"),
		array (name=>"notes",label=>"Notes",type=>"alphanumeric",
				input=>"text"),
	),
));

$fs_eve_man_events->parse ();

?>
